home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / MainWP.h.z / MainWP.h
C/C++ Source or Header  |  2002-10-15  |  3KB  |  115 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: MainWP.h /main/12 1995/07/13 17:34:19 drk $ */
  12. /*
  13. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  14. #ifndef _XmMainWindowP_h
  15. #define _XmMainWindowP_h
  16.  
  17. #include <Xm/MainW.h>
  18. #include <Xm/ScrolledWP.h>
  19. #include <Xm/SeparatoG.h>
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25.  
  26. #define DEFAULT_HEIGHT 20
  27. #define DEFAULT_WIDTH 20
  28.   
  29. /* Constraint part record for MainWindow widget */
  30. typedef struct _XmMainWindowConstraintPart
  31. {
  32.    char unused;
  33. } XmMainWindowConstraintPart, * XmMainWindowConstraint;
  34.  
  35.  
  36. /* New fields for the MainWindow widget class record */
  37. typedef struct {
  38.    XtPointer extension;   /* Pointer to extension record */
  39.  
  40. #ifdef _SGIMOTIF
  41.    XtPointer    _SG_vendorExtension;
  42. #endif
  43.    
  44. } XmMainWindowClassPart;
  45.  
  46. /****************
  47.  *
  48.  * Class record declaration
  49.  *
  50.  ****************/
  51. typedef struct _XmMainWindowClassRec {
  52.     CoreClassPart    core_class;
  53.     CompositeClassPart  composite_class;
  54.     ConstraintClassPart constraint_class;
  55.     XmManagerClassPart  manager_class;
  56.     XmScrolledWindowClassPart    swindow_class;
  57.     XmMainWindowClassPart    mwindow_class;
  58. } XmMainWindowClassRec;
  59.  
  60. externalref XmMainWindowClassRec xmMainWindowClassRec;
  61.  
  62. /****************
  63.  *
  64.  * Main Window instance structure.
  65.  *
  66.  ****************/
  67. typedef struct {
  68.  
  69.  
  70.    Dimension    AreaWidth,AreaHeight;
  71.    Dimension    margin_width,margin_height;
  72.    Widget       CommandWindow;
  73.    Widget       MenuBar;
  74.    Widget       Message;
  75.    unsigned char CommandLoc;
  76.    XmSeparatorGadget       Sep1,Sep2,Sep3;
  77.    Boolean    ManagingSep;
  78.    Boolean    ShowSep;
  79.  
  80. #ifdef _SGIMOTIF
  81.     XtPointer    _SG_vendorExtension;
  82. #endif
  83.     
  84. } XmMainWindowPart;
  85.  
  86.  
  87. /************************************************************************
  88.  *                                    *
  89.  * Full instance record declaration                    *
  90.  *                                    *
  91.  ************************************************************************/
  92.  
  93. typedef struct _XmMainWindowRec {
  94.     CorePart        core;
  95.     CompositePart   composite;
  96.     ConstraintPart constraint;
  97.     XmManagerPart   manager;
  98.     XmScrolledWindowPart   swindow;
  99.     XmMainWindowPart   mwindow;
  100. } XmMainWindowRec;
  101.  
  102.  
  103. /********    Private Function Declarations    ********/
  104.  
  105.  
  106. /********    End Private Function Declarations    ********/
  107.  
  108.  
  109. #ifdef __cplusplus
  110. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  111. #endif
  112.  
  113. #endif /* _XmMainWindowP_h */
  114. /* DON'T ADD STUFF AFTER THIS #endif */
  115.